<template>
  <div class="m-header">
    <div class="icon"></div>
    <h1 class="text">Wbwb Music</h1>
    <router-link to="/user" class="mine" tag="div">
      <i class="iconfont icon-mine"></i>
    </router-link>
  </div>
</template>

<script>
export default {
  name: 'M-header'
}
</script>

<style lang="scss" scoped>
@import "~@/assets/css/variable.scss";

.m-header{
  position: relative;
  left: 0;
  top: 0;
  right: 0;
  height: 44px;
  text-align: center;
  color: $color-theme;
  .icon{
    display: inline-block;
    margin-top: 6px;
    margin-right: 10px;
    height: 32px;
    width: 32px;
    background: url('../../assets/images/logo.png') no-repeat 0 0;
    background-size: 32px 32px;
  }
  .text{
    display: inline-block;
    line-height: 44px;
    font-size: $font-size-large;
    vertical-align: top;
  }
  .mine{
    position: absolute;
    top: 0;
    right: 0;
    .icon-mine{
      display: block;
      padding: 12px;
      font-size: 20px;
      color: $color-theme;
    }
  }
}
</style>